package luzhin;

/**
 * Cache for a board.
 * Keeps best move found before, evaluation and the depth of the search.
 * @author lacungus
 *
 */
public class CacheData {
	private Move bestMove;
	private int depth;
	private double eval;
	
	/**
	 * 
	 * @param bestMove 
	 * @param depth
	 * @param eval
	 */
	public CacheData(Move bestMove, int depth, double eval) {
		this.bestMove = bestMove;
		this.depth = depth;
		this.eval = eval;
	}
	
	/**
	 * 
	 * @return best move for the board.
	 */
	public Move getBestMove() {
		return bestMove;
	}
	
	/**
	 * 
	 * @return Depth.
	 */
	public int getDepth() {
		return depth;
	}
	
	/**
	 * 
	 * @return Evaluation of the board.
	 */
	public double getEval() {
		return eval;
	}
}
